﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ScrumFactory.Exceptions {

    public class BusinessRuleViolationException : Exception {

        public BusinessRuleViolationException(string message) : base(message) {
            LocalizedMessage = message;
        }

        public BusinessRuleViolationException() : base("A business rule has been violated.") {
            LocalizedMessage = Message;
            LocalizedMessageTitle = "Error";
        }

        public string LocalizedMessage { get; set; }
        public string LocalizedMessageTitle { get; set; }

    }
}
